package Dome04;
//            System.out.println("in");
public class Test {
    public static void main(String[] args) {
        Animal animal = new Animal() {
            @Override
            public void eat() {
                System.out.println("eat");
            }
        };
        animal.eat();
        new Animal() {
            @Override
            public void eat() {
                System.out.println("eat");
            }
        }.eat();
    }
    public static void main00(String[] args) {
        Out.In in = new Out.In();
        in.test();
    }
}


interface Animal {
    void eat();
}

class Out {
    public int a = 1;
    public static int d = 4;
    static class In {
        public int b = 2;
        public static int c = 3;
        public void test() {
            Out out = new Out();
            System.out.println(out.a);
            System.out.println(b);
            System.out.println(c);
            System.out.println(d);
        }
    }
    public void test() {
        System.out.println("out");
    }
}
